package Code.Day3_20240920.com.dx.day03;

/**
 * @ClassName Test05
 * @Description 静态变量与实例变量
 * @Author 12994
 * @Date 2024/9/20 18:48
 * @Version 1.0
 **/
public class Test05 {
    public static int a = 0;
    public int b = 0;


    public static void main(String[] args) {

        Test05 test05_01 = new Test05();
        Test05 test05_02 = new Test05();

        System.out.println(test05_01.a);
        System.out.println(test05_02.a);
        test05_01.a = 1000;
        System.out.println(test05_01.a);
        System.out.println(test05_02.a);

        System.out.println("----------------");

        System.out.println(test05_01.b);
        System.out.println(test05_02.b);
        test05_01.b = 1000;
        System.out.println(test05_01.b);
        System.out.println(test05_02.b);
    }
}
